<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
  "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
  
  <package name="giocatori" extends="main" namespace="/giocatori">    
      <result-types>
         <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
      </result-types>    
      <action name="toElencoGiocatori" class="it.fc.action.FcAction">
        <result name="success" type="tiles">giocatori.elenco</result>
      </action>       
      <action name="composeTeam" class="it.fc.action.giocatori.TeamAction">
        <result name="new" type="tiles">giocatori.newteam</result>
        <result name="success" type="tiles">giocatori.gestione</result>
      </action>
      <action name="ToManageTeam" class="it.fc.action.giocatori.ToManageTeam">
        <result name="success" type="tiles">giocatori.compose</result>
      </action>
      <action name="saveSquadra" class="it.fc.action.giocatori.SaveSquadraAction">
        <result name="input" type="tiles">giocatori.newteam</result>
        <result name="success" type="tiles">giocatori.gestione</result>
      </action>       
      <action name="saveTeam" class="it.fc.action.giocatori.SaveTeamAction">
        <result name="input" type="tiles">giocatori.compose</result>
        <result name="success" type="tiles">giocatori.gestione</result>
      </action> 
      <action name="toRosaAction" class="it.fc.action.giocatori.ToRosaAction">
        <result name="success" type="tiles">giocatori.rosa</result>
      </action>    
      <action name="toNewPlayer" class="it.fc.action.FcAction">
        <result name="success" type="tiles">giocatori.insertPlayer</result>
      </action>
      <action name="PlayerList" class="it.fc.action.giocatori.PlayerList">
        <result name="success" type="tiles">giocatori.elenco</result>
      </action>     
      <action name="deletePlayer" class="it.fc.action.giocatori.DeletePlayer">
        <result name="success" type="redirectAction">PlayerList</result>
      </action>   
       <action name="newPlayerElenco" class="it.fc.action.giocatori.InsertPlayer">
        <result name="input" type="tiles">giocatori.insertPlayer</result>
        <result name="success" type="tiles">giocatori.insertPlayer</result>
      </action>                
  </package>
</struts>